package com.gitee.wsl.mathematics.matrix.ext

import com.gitee.wsl.mathematics.matrix.Matrix

 operator fun <T:Number,V: Matrix<T, V, *>> Number.div(vec: Matrix<T, V, *>):V = vec.divBy(this)

 operator fun <T:Number,V: Matrix<T, V, *>> Number.times(vec: Matrix<T, V, *>):V = vec.times(this)

 operator fun <T:Number, V: Matrix<T, V, *>> Number.rem(vec: Matrix<T, V, *>):V = vec.remBy(this)

//operator fun<T:Number, V: Matrix<T, V, *>> Matrix<T, V, *>.plus(other: Number):V= create( proxy.map{ i ->  i + other  } )

/*inline operator fun <V: Matrix<*, V, *>> Number.minus(vec: V):V {
   val a = this
   return vec.run{ create( proxy.map{ i -> a - i   } )}
} */


